package com.quanyan.place.entity.apireq;

import com.quanyan.BaseRequest;
import com.quanyan.orderpay.request.ReqPayInfo;
import com.quanyan.place.entity.apiresp.RespPlaceUserInfo;
import org.hibernate.validator.constraints.NotEmpty;

import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * Created by Kingson.chan on 2016/6/17 0017.
 */
public class ReqOrderPay extends BaseRequest {
    @NotNull
    private String orderNo;
    private Integer uid;
    private String openId;
    @NotEmpty
    private List<ReqPayInfo> payInfos;
    private String token;
    private Integer mchId;
    private Byte useType;
    private RespPlaceUserInfo userInfo;


    private String showURLForH5;// 商品展示网址 用户付款中途退出返回商户网站的地址。(支付宝)

    private String returnUrlForH5; //页面跳转同步通知页面路径 支付宝处理完请求后，当前页面自动跳转到商户网站里指定页面的http路径。（支付宝）

    private String tokenFlag;

    public Integer getMchId() {
        return mchId;
    }

    public void setMchId(Integer mchId) {
        this.mchId = mchId;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public List<ReqPayInfo> getPayInfos() {
        return payInfos;
    }

    public void setPayInfos(List<ReqPayInfo> payInfos) {
        this.payInfos = payInfos;
    }

    public String getOpenId() {
        return openId;
    }

    public void setOpenId(String openId) {
        this.openId = openId;
    }

    public String getOrderNo() {
        return orderNo;
    }

    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo;
    }

    public Integer getUid() {
        return uid;
    }

    public void setUid(Integer uid) {
        this.uid = uid;
    }

    public Byte getUseType() {
        return useType;
    }

    public void setUseType(Byte useType) {
        this.useType = useType;
    }

    public String getShowURLForH5() {
        return showURLForH5;
    }

    public void setShowURLForH5(String showURLForH5) {
        this.showURLForH5 = showURLForH5;
    }

    public String getReturnUrlForH5() {
        return returnUrlForH5;
    }

    public void setReturnUrlForH5(String returnUrlForH5) {
        this.returnUrlForH5 = returnUrlForH5;
    }

    public String getTokenFlag() {
        return tokenFlag;
    }

    public void setTokenFlag(String tokenFlag) {
        this.tokenFlag = tokenFlag;
    }

    public RespPlaceUserInfo getUserInfo() {
        return userInfo;
    }

    public void setUserInfo(RespPlaceUserInfo userInfo) {
        this.userInfo = userInfo;
    }
}
